package service;

import java.util.List;

import models.LeaMes;

public class LeaMesService {
	
	/**
	 * 
	 * @return
	 */
	public static List<LeaMes> findAll(){
		return LeaMes.findAll();
	}
		
	/**
	 * 
	 * @param id
	 * @return
	 */
	public static LeaMes findById(long id){
		return LeaMes.findById(id);
	}
	
	/**
	 * 
	 * @param lea
	 */
	public static void create(LeaMes lea){
		lea.create();
	}
	
	/**
	 * 
	 * @param lea
	 */
	public static void save(LeaMes lea){
		lea.save();
	}
	
	/**
	 * 
	 * @param id
	 */
	public static void delete(long id){
		LeaMes.findById(id)._delete();
	}
}
